package com.qinggeng.project.api.dto;

import com.qinggeng.project.system.domain.WelcomePage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 吴鹏飞
 * @date 2020/10/13
 */
@Data
public class WelcomePageDto {

    //欢迎页图片
    @ApiModelProperty(value = "图片",required = true)
    private String image;
    //图片顺序
    @ApiModelProperty(value = "图片顺序",required = true)
    private String order;

    //获取WelcomePageDto
    public static WelcomePageDto getWelcomePageDto(WelcomePage welcomePage){
        WelcomePageDto welcomePageDto = new WelcomePageDto();
        welcomePageDto.setImage(welcomePage.getImage());
        welcomePageDto.setOrder(welcomePage.getOrder());
        return welcomePageDto;
    }
}
